package com.zhongyouyun.admin.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyouyun.admin.model.MenuModel;
import com.zhongyouyun.admin.model.RoleMenuModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongyouyun.admin.model.UserModel;
import com.zhongyouyun.admin.pojo.MenuPojo;
import com.zhongyouyun.admin.pojo.RoleMenuPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Author: shenyi
 * @Date: 2021-09-23
 * @Description: 角色资源中间表Mapper
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenuModel> {

    List<MenuModel> selectMenuList(UserModel userModel);

    List<RoleMenuPojo> findPermissions(UserModel userModel);
}
